﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Automted_Bank_teller
{
    class logout
    {
        public void iog_out()
        {
            DialogResult dialog = MessageBox.Show("Do you want to logout ?", "Exit", MessageBoxButtons.OK);

            if (dialog == DialogResult.OK)
            {
                ClientsFunction function = new ClientsFunction();
                function.Close();
                function.Hide();
                Bank_Entry_System main_entry = new Bank_Entry_System();
                main_entry.ShowDialog();
                function.Hide();

            }
        }
    }
}
